<template>
  <button @click="sendEvent">发送事件</button>
</template>

<script setup>
import emitter from '@/eventBus.js'

const sendEvent = () => {
  emitter.emit('custom:event', { message: '来自 EventSender 的消息' })
}
</script>
